Random access memory stream

Full documentation

Initializes a new MemoryStream object.

Full documentation

Initializes a new MemoryStream object.

Full documentation

Initializes a new MemoryStream object with the specified byte array.

Full documentation

Initializes a new MemoryStream object with the specified byte array.

Full documentation

Returns this stream as a Java java.io.InputStream.

Full documentation

Returns this stream as a Java java.io.OutputStream.

Full documentation

Closes the stream.

Full documentation

This method supports the internal library infrastructure and should not be used by external client code.

Full documentation

Clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Full documentation

Full documentation

Gets the length in bytes of the stream.

Full documentation

Gets the position within the current stream.

Full documentation

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.

Full documentation

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Full documentation

Sets the position within the current stream.

Full documentation

Sets the length of the current stream.

Full documentation

Sets the position within the current stream.

Full documentation

Converts the stream to a byte array

Full documentation

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

Full documentation

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Full documentation